package com.boc.goodsmodule.activity;

import android.support.v4.app.FragmentTransaction;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.alibaba.android.arouter.launcher.ARouter;
import com.boc.goodsmodule.R;
import com.boc.goodsmodule.fragment.GoodsPageFragment;

import demo.bocweb.com.sdk.base.activity.BaseActivity;
import demo.bocweb.com.sdk.config.ARoutConfig;

/**
 * Created by zhelun on 2018/2/7.
 */
@Route(path = ARoutConfig.goodsPageActivityPath)
public class GoodsPageActivity extends BaseActivity {
    @Override
    protected int getLayoutId() {
        return R.layout.activity_goods_page;
    }

    @Override
    protected void initData() {
        super.initData();
        GoodsPageFragment goodsPageFragment = (GoodsPageFragment) ARouter.getInstance().build(ARoutConfig.goodsPageFragmentPath).navigation();
        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
        transaction.add(R.id.fl_goods, goodsPageFragment).commit();
    }
}
